home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / communication / internet / amitcp3.0b / src.lha / src / l / inet-handler / applport.c next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  864 b   |  40 lines

  1. /*
  2.  * applport.c
  3.  *
  4.  * Author: Tomi Ollila <too@cs.hut.fi>
  5.  *
  6.  *     Copyright (c) 1993 Tomi Ollila
  7.  *         All rights reserved
  8.  *
  9.  * Created: Fri Nov  5 19:37:40 1993 too
  10.  * Last modified: Sun Nov 14 20:18:46 1993 too
  11.  *
  12.  * HISTORY
  13.  * $Log: applport.c,v $
  14.  * Revision 1.1  1993/11/17  11:47:44  too
  15.  * Initial revision
  16.  *
  17.  */
  18.  
  19. #include <exec/types.h>
  20. #include <exec/ports.h>
  21. #include <exec/interrupts.h>
  22.  
  23. #include "global.h"
  24.  
  25. #include "applport.h"
  26. #include "interrupt.h"
  27.  
  28. void initApplMsgPort(struct ApplMsgPort * aport)
  29. {
  30.   aport->amp_Msgport.mp_Node.ln_Type = NT_MSGPORT;
  31.   aport->amp_Msgport.mp_Flags = PA_SOFTINT;
  32.   aport->amp_Msgport.mp_SigTask = (struct Task *)&aport->amp_Interrupt;
  33.  
  34.   aport->amp_Interrupt.is_Code = intCode;
  35.   aport->amp_Interrupt.is_Data = aport;
  36.   aport->amp_Interrupt.is_Node.ln_Pri = -32;
  37.   
  38.   NewList(&aport->amp_Msgport.mp_MsgList);
  39. }
  40.